package com.gzc.just.play.server;

import com.beust.jcommander.Parameter;

public class ServerCommandOptions {
    @Parameter(names = {"-h", "--help"}, description = "command help", help = true)
    private boolean help;

    @Parameter(names = {"-i", "--ip"}, description = "tcp server ip, default is 0.0.0.0")
    private String ip;

    @Parameter(names = {"-p", "--port"}, description = "tcp server port")
    private int port = 9527;

    public boolean isHelp() {
        return help;
    }

    public String getIp() {
        return ip;
    }

    public int getPort() {
        return port;
    }
}
